<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<%@include file="/ui/jsp/includes/header.jspf"%>
<script type="text/javascript">
function login()
{
	$('#loginForm').attr('action', 'login.html');
	$('#loginForm').submit();
}

function forgotpw()
{
	$('#loginForm').attr('action', 'ForgotPassword.html');
	$('#loginForm').submit();
}
</script>
<div class="hero-unit secondary_container">
	<form:form id="loginForm" method="POST" commandName="userLogin"  cssClass="form-horizontal" onkeypress="if(event.keyCode == 13) {javascript:login();}">
		<form:errors path="*" cssClass="errorblock" element="div"/>
		<div class="control-group">
			<label class="control-label" for="userName">UserName</label>
			<div class="controls">
				<form:input id="userName" path="userName"/>
				
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputPassword">Password</label>
			<div class="controls">
				<form:password path="password"/>
			</div>
		</div>
		<div class="control-group">
			<div class="controls" tabindex="0">
				
				<input type="button"  onclick="javascript:login()" value="Submit" class="btn btn-primary"/>
				<button type="button" onclick="javascript:forgotpw()" class="btn btn-primary">Forgot Password</button>
			</div>
		</div>
	</form:form>
</div>
<%@include file="/ui/jsp/includes/footer.jspf"%>






<%--
		<%@include file="/ui/jsp/includes/includes.jspf"%>
<html>
<body>
	<%@include file="/ui/jsp/includes/header.jspf"%>
	<div class="container">
		<div class="content">
		<div class="panel">
			<form name="loginForm" method="post" action="login.html">
				<p>
					User Name:<input type="text" name="userName">
				</p>
				<p>
					Password:<input type="password" name="password">
				</p>
				<p>
					<input type="submit" value="Submit"/>
			</form>
			</div>
		</div>
		<%@include file="/ui/jsp/includes/footer.jspf"%>
	</div>
</body>
</html>
	
	 --%>

<%-- <form:form method="post" action="validateUser.html" commandName="userLogin">
<table>
	<tr>
		<td><form:label path="userName"><spring:message code="label.user"/></form:label></td>
		<td><form:input path="userName" /></td> 
	</tr>
	<tr>
		<td><form:label path="password"><spring:message code="label.password"/></form:label></td>
		<td><form:input path="password" /></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="<spring:message code="label.submit"/>"/>
		</td>
	</tr>
</table>	
</form:form> --%>
